package com.team.po;

import java.util.ArrayList;
import java.util.Date;
import java.util.Iterator;
import java.util.List;

public class EquipmentExample {
    protected String orderByClause;

    protected boolean distinct;

    protected List<Criteria> oredCriteria;

    public EquipmentExample() {
        oredCriteria = new ArrayList<Criteria>();
    }

    public void setOrderByClause(String orderByClause) {
        this.orderByClause = orderByClause;
    }

    public String getOrderByClause() {
        return orderByClause;
    }

    public void setDistinct(boolean distinct) {
        this.distinct = distinct;
    }

    public boolean isDistinct() {
        return distinct;
    }

    public List<Criteria> getOredCriteria() {
        return oredCriteria;
    }

    public void or(Criteria criteria) {
        oredCriteria.add(criteria);
    }

    public Criteria or() {
        Criteria criteria = createCriteriaInternal();
        oredCriteria.add(criteria);
        return criteria;
    }

    public Criteria createCriteria() {
        Criteria criteria = createCriteriaInternal();
        if (oredCriteria.size() == 0) {
            oredCriteria.add(criteria);
        }
        return criteria;
    }

    protected Criteria createCriteriaInternal() {
        Criteria criteria = new Criteria();
        return criteria;
    }

    public void clear() {
        oredCriteria.clear();
        orderByClause = null;
        distinct = false;
    }

    protected abstract static class GeneratedCriteria {
        protected List<Criterion> criteria;

        protected GeneratedCriteria() {
            super();
            criteria = new ArrayList<Criterion>();
        }

        public boolean isValid() {
            return criteria.size() > 0;
        }

        public List<Criterion> getAllCriteria() {
            return criteria;
        }

        public List<Criterion> getCriteria() {
            return criteria;
        }

        protected void addCriterion(String condition) {
            if (condition == null) {
                throw new RuntimeException("Value for condition cannot be null");
            }
            criteria.add(new Criterion(condition));
        }

        protected void addCriterion(String condition, Object value, String property) {
            if (value == null) {
                throw new RuntimeException("Value for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value));
        }

        protected void addCriterion(String condition, Object value1, Object value2, String property) {
            if (value1 == null || value2 == null) {
                throw new RuntimeException("Between values for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value1, value2));
        }

        protected void addCriterionForJDBCDate(String condition, Date value, String property) {
            if (value == null) {
                throw new RuntimeException("Value for " + property + " cannot be null");
            }
            addCriterion(condition, new java.sql.Date(value.getTime()), property);
        }

        protected void addCriterionForJDBCDate(String condition, List<Date> values, String property) {
            if (values == null || values.size() == 0) {
                throw new RuntimeException("Value list for " + property + " cannot be null or empty");
            }
            List<java.sql.Date> dateList = new ArrayList<java.sql.Date>();
            Iterator<Date> iter = values.iterator();
            while (iter.hasNext()) {
                dateList.add(new java.sql.Date(iter.next().getTime()));
            }
            addCriterion(condition, dateList, property);
        }

        protected void addCriterionForJDBCDate(String condition, Date value1, Date value2, String property) {
            if (value1 == null || value2 == null) {
                throw new RuntimeException("Between values for " + property + " cannot be null");
            }
            addCriterion(condition, new java.sql.Date(value1.getTime()), new java.sql.Date(value2.getTime()), property);
        }

        public Criteria andEqidIsNull() {
            addCriterion("Eqid is null");
            return (Criteria) this;
        }

        public Criteria andEqidIsNotNull() {
            addCriterion("Eqid is not null");
            return (Criteria) this;
        }

        public Criteria andEqidEqualTo(Integer value) {
            addCriterion("Eqid =", value, "eqid");
            return (Criteria) this;
        }

        public Criteria andEqidNotEqualTo(Integer value) {
            addCriterion("Eqid <>", value, "eqid");
            return (Criteria) this;
        }

        public Criteria andEqidGreaterThan(Integer value) {
            addCriterion("Eqid >", value, "eqid");
            return (Criteria) this;
        }

        public Criteria andEqidGreaterThanOrEqualTo(Integer value) {
            addCriterion("Eqid >=", value, "eqid");
            return (Criteria) this;
        }

        public Criteria andEqidLessThan(Integer value) {
            addCriterion("Eqid <", value, "eqid");
            return (Criteria) this;
        }

        public Criteria andEqidLessThanOrEqualTo(Integer value) {
            addCriterion("Eqid <=", value, "eqid");
            return (Criteria) this;
        }

        public Criteria andEqidIn(List<Integer> values) {
            addCriterion("Eqid in", values, "eqid");
            return (Criteria) this;
        }

        public Criteria andEqidNotIn(List<Integer> values) {
            addCriterion("Eqid not in", values, "eqid");
            return (Criteria) this;
        }

        public Criteria andEqidBetween(Integer value1, Integer value2) {
            addCriterion("Eqid between", value1, value2, "eqid");
            return (Criteria) this;
        }

        public Criteria andEqidNotBetween(Integer value1, Integer value2) {
            addCriterion("Eqid not between", value1, value2, "eqid");
            return (Criteria) this;
        }

        public Criteria andRidIsNull() {
            addCriterion("Rid is null");
            return (Criteria) this;
        }

        public Criteria andRidIsNotNull() {
            addCriterion("Rid is not null");
            return (Criteria) this;
        }

        public Criteria andRidEqualTo(Integer value) {
            addCriterion("Rid =", value, "rid");
            return (Criteria) this;
        }

        public Criteria andRidNotEqualTo(Integer value) {
            addCriterion("Rid <>", value, "rid");
            return (Criteria) this;
        }

        public Criteria andRidGreaterThan(Integer value) {
            addCriterion("Rid >", value, "rid");
            return (Criteria) this;
        }

        public Criteria andRidGreaterThanOrEqualTo(Integer value) {
            addCriterion("Rid >=", value, "rid");
            return (Criteria) this;
        }

        public Criteria andRidLessThan(Integer value) {
            addCriterion("Rid <", value, "rid");
            return (Criteria) this;
        }

        public Criteria andRidLessThanOrEqualTo(Integer value) {
            addCriterion("Rid <=", value, "rid");
            return (Criteria) this;
        }

        public Criteria andRidIn(List<Integer> values) {
            addCriterion("Rid in", values, "rid");
            return (Criteria) this;
        }

        public Criteria andRidNotIn(List<Integer> values) {
            addCriterion("Rid not in", values, "rid");
            return (Criteria) this;
        }

        public Criteria andRidBetween(Integer value1, Integer value2) {
            addCriterion("Rid between", value1, value2, "rid");
            return (Criteria) this;
        }

        public Criteria andRidNotBetween(Integer value1, Integer value2) {
            addCriterion("Rid not between", value1, value2, "rid");
            return (Criteria) this;
        }

        public Criteria andEqucategoryIsNull() {
            addCriterion("equCategory is null");
            return (Criteria) this;
        }

        public Criteria andEqucategoryIsNotNull() {
            addCriterion("equCategory is not null");
            return (Criteria) this;
        }

        public Criteria andEqucategoryEqualTo(String value) {
            addCriterion("equCategory =", value, "equcategory");
            return (Criteria) this;
        }

        public Criteria andEqucategoryNotEqualTo(String value) {
            addCriterion("equCategory <>", value, "equcategory");
            return (Criteria) this;
        }

        public Criteria andEqucategoryGreaterThan(String value) {
            addCriterion("equCategory >", value, "equcategory");
            return (Criteria) this;
        }

        public Criteria andEqucategoryGreaterThanOrEqualTo(String value) {
            addCriterion("equCategory >=", value, "equcategory");
            return (Criteria) this;
        }

        public Criteria andEqucategoryLessThan(String value) {
            addCriterion("equCategory <", value, "equcategory");
            return (Criteria) this;
        }

        public Criteria andEqucategoryLessThanOrEqualTo(String value) {
            addCriterion("equCategory <=", value, "equcategory");
            return (Criteria) this;
        }

        public Criteria andEqucategoryLike(String value) {
            addCriterion("equCategory like", value, "equcategory");
            return (Criteria) this;
        }

        public Criteria andEqucategoryNotLike(String value) {
            addCriterion("equCategory not like", value, "equcategory");
            return (Criteria) this;
        }

        public Criteria andEqucategoryIn(List<String> values) {
            addCriterion("equCategory in", values, "equcategory");
            return (Criteria) this;
        }

        public Criteria andEqucategoryNotIn(List<String> values) {
            addCriterion("equCategory not in", values, "equcategory");
            return (Criteria) this;
        }

        public Criteria andEqucategoryBetween(String value1, String value2) {
            addCriterion("equCategory between", value1, value2, "equcategory");
            return (Criteria) this;
        }

        public Criteria andEqucategoryNotBetween(String value1, String value2) {
            addCriterion("equCategory not between", value1, value2, "equcategory");
            return (Criteria) this;
        }

        public Criteria andEqunameIsNull() {
            addCriterion("equName is null");
            return (Criteria) this;
        }

        public Criteria andEqunameIsNotNull() {
            addCriterion("equName is not null");
            return (Criteria) this;
        }

        public Criteria andEqunameEqualTo(String value) {
            addCriterion("equName =", value, "equname");
            return (Criteria) this;
        }

        public Criteria andEqunameNotEqualTo(String value) {
            addCriterion("equName <>", value, "equname");
            return (Criteria) this;
        }

        public Criteria andEqunameGreaterThan(String value) {
            addCriterion("equName >", value, "equname");
            return (Criteria) this;
        }

        public Criteria andEqunameGreaterThanOrEqualTo(String value) {
            addCriterion("equName >=", value, "equname");
            return (Criteria) this;
        }

        public Criteria andEqunameLessThan(String value) {
            addCriterion("equName <", value, "equname");
            return (Criteria) this;
        }

        public Criteria andEqunameLessThanOrEqualTo(String value) {
            addCriterion("equName <=", value, "equname");
            return (Criteria) this;
        }

        public Criteria andEqunameLike(String value) {
            addCriterion("equName like", value, "equname");
            return (Criteria) this;
        }

        public Criteria andEqunameNotLike(String value) {
            addCriterion("equName not like", value, "equname");
            return (Criteria) this;
        }

        public Criteria andEqunameIn(List<String> values) {
            addCriterion("equName in", values, "equname");
            return (Criteria) this;
        }

        public Criteria andEqunameNotIn(List<String> values) {
            addCriterion("equName not in", values, "equname");
            return (Criteria) this;
        }

        public Criteria andEqunameBetween(String value1, String value2) {
            addCriterion("equName between", value1, value2, "equname");
            return (Criteria) this;
        }

        public Criteria andEqunameNotBetween(String value1, String value2) {
            addCriterion("equName not between", value1, value2, "equname");
            return (Criteria) this;
        }

        public Criteria andEqupriceIsNull() {
            addCriterion("equPrice is null");
            return (Criteria) this;
        }

        public Criteria andEqupriceIsNotNull() {
            addCriterion("equPrice is not null");
            return (Criteria) this;
        }

        public Criteria andEqupriceEqualTo(Double value) {
            addCriterion("equPrice =", value, "equprice");
            return (Criteria) this;
        }

        public Criteria andEqupriceNotEqualTo(Double value) {
            addCriterion("equPrice <>", value, "equprice");
            return (Criteria) this;
        }

        public Criteria andEqupriceGreaterThan(Double value) {
            addCriterion("equPrice >", value, "equprice");
            return (Criteria) this;
        }

        public Criteria andEqupriceGreaterThanOrEqualTo(Double value) {
            addCriterion("equPrice >=", value, "equprice");
            return (Criteria) this;
        }

        public Criteria andEqupriceLessThan(Double value) {
            addCriterion("equPrice <", value, "equprice");
            return (Criteria) this;
        }

        public Criteria andEqupriceLessThanOrEqualTo(Double value) {
            addCriterion("equPrice <=", value, "equprice");
            return (Criteria) this;
        }

        public Criteria andEqupriceIn(List<Double> values) {
            addCriterion("equPrice in", values, "equprice");
            return (Criteria) this;
        }

        public Criteria andEqupriceNotIn(List<Double> values) {
            addCriterion("equPrice not in", values, "equprice");
            return (Criteria) this;
        }

        public Criteria andEqupriceBetween(Double value1, Double value2) {
            addCriterion("equPrice between", value1, value2, "equprice");
            return (Criteria) this;
        }

        public Criteria andEqupriceNotBetween(Double value1, Double value2) {
            addCriterion("equPrice not between", value1, value2, "equprice");
            return (Criteria) this;
        }

        public Criteria andEqunumberIsNull() {
            addCriterion("equNumber is null");
            return (Criteria) this;
        }

        public Criteria andEqunumberIsNotNull() {
            addCriterion("equNumber is not null");
            return (Criteria) this;
        }

        public Criteria andEqunumberEqualTo(Integer value) {
            addCriterion("equNumber =", value, "equnumber");
            return (Criteria) this;
        }

        public Criteria andEqunumberNotEqualTo(Integer value) {
            addCriterion("equNumber <>", value, "equnumber");
            return (Criteria) this;
        }

        public Criteria andEqunumberGreaterThan(Integer value) {
            addCriterion("equNumber >", value, "equnumber");
            return (Criteria) this;
        }

        public Criteria andEqunumberGreaterThanOrEqualTo(Integer value) {
            addCriterion("equNumber >=", value, "equnumber");
            return (Criteria) this;
        }

        public Criteria andEqunumberLessThan(Integer value) {
            addCriterion("equNumber <", value, "equnumber");
            return (Criteria) this;
        }

        public Criteria andEqunumberLessThanOrEqualTo(Integer value) {
            addCriterion("equNumber <=", value, "equnumber");
            return (Criteria) this;
        }

        public Criteria andEqunumberIn(List<Integer> values) {
            addCriterion("equNumber in", values, "equnumber");
            return (Criteria) this;
        }

        public Criteria andEqunumberNotIn(List<Integer> values) {
            addCriterion("equNumber not in", values, "equnumber");
            return (Criteria) this;
        }

        public Criteria andEqunumberBetween(Integer value1, Integer value2) {
            addCriterion("equNumber between", value1, value2, "equnumber");
            return (Criteria) this;
        }

        public Criteria andEqunumberNotBetween(Integer value1, Integer value2) {
            addCriterion("equNumber not between", value1, value2, "equnumber");
            return (Criteria) this;
        }

        public Criteria andEqudateIsNull() {
            addCriterion("equDate is null");
            return (Criteria) this;
        }

        public Criteria andEqudateIsNotNull() {
            addCriterion("equDate is not null");
            return (Criteria) this;
        }

        public Criteria andEqudateEqualTo(Date value) {
            addCriterionForJDBCDate("equDate =", value, "equdate");
            return (Criteria) this;
        }

        public Criteria andEqudateNotEqualTo(Date value) {
            addCriterionForJDBCDate("equDate <>", value, "equdate");
            return (Criteria) this;
        }

        public Criteria andEqudateGreaterThan(Date value) {
            addCriterionForJDBCDate("equDate >", value, "equdate");
            return (Criteria) this;
        }

        public Criteria andEqudateGreaterThanOrEqualTo(Date value) {
            addCriterionForJDBCDate("equDate >=", value, "equdate");
            return (Criteria) this;
        }

        public Criteria andEqudateLessThan(Date value) {
            addCriterionForJDBCDate("equDate <", value, "equdate");
            return (Criteria) this;
        }

        public Criteria andEqudateLessThanOrEqualTo(Date value) {
            addCriterionForJDBCDate("equDate <=", value, "equdate");
            return (Criteria) this;
        }

        public Criteria andEqudateIn(List<Date> values) {
            addCriterionForJDBCDate("equDate in", values, "equdate");
            return (Criteria) this;
        }

        public Criteria andEqudateNotIn(List<Date> values) {
            addCriterionForJDBCDate("equDate not in", values, "equdate");
            return (Criteria) this;
        }

        public Criteria andEqudateBetween(Date value1, Date value2) {
            addCriterionForJDBCDate("equDate between", value1, value2, "equdate");
            return (Criteria) this;
        }

        public Criteria andEqudateNotBetween(Date value1, Date value2) {
            addCriterionForJDBCDate("equDate not between", value1, value2, "equdate");
            return (Criteria) this;
        }

        public Criteria andEqufactoryIsNull() {
            addCriterion("equFactory is null");
            return (Criteria) this;
        }

        public Criteria andEqufactoryIsNotNull() {
            addCriterion("equFactory is not null");
            return (Criteria) this;
        }

        public Criteria andEqufactoryEqualTo(String value) {
            addCriterion("equFactory =", value, "equfactory");
            return (Criteria) this;
        }

        public Criteria andEqufactoryNotEqualTo(String value) {
            addCriterion("equFactory <>", value, "equfactory");
            return (Criteria) this;
        }

        public Criteria andEqufactoryGreaterThan(String value) {
            addCriterion("equFactory >", value, "equfactory");
            return (Criteria) this;
        }

        public Criteria andEqufactoryGreaterThanOrEqualTo(String value) {
            addCriterion("equFactory >=", value, "equfactory");
            return (Criteria) this;
        }

        public Criteria andEqufactoryLessThan(String value) {
            addCriterion("equFactory <", value, "equfactory");
            return (Criteria) this;
        }

        public Criteria andEqufactoryLessThanOrEqualTo(String value) {
            addCriterion("equFactory <=", value, "equfactory");
            return (Criteria) this;
        }

        public Criteria andEqufactoryLike(String value) {
            addCriterion("equFactory like", value, "equfactory");
            return (Criteria) this;
        }

        public Criteria andEqufactoryNotLike(String value) {
            addCriterion("equFactory not like", value, "equfactory");
            return (Criteria) this;
        }

        public Criteria andEqufactoryIn(List<String> values) {
            addCriterion("equFactory in", values, "equfactory");
            return (Criteria) this;
        }

        public Criteria andEqufactoryNotIn(List<String> values) {
            addCriterion("equFactory not in", values, "equfactory");
            return (Criteria) this;
        }

        public Criteria andEqufactoryBetween(String value1, String value2) {
            addCriterion("equFactory between", value1, value2, "equfactory");
            return (Criteria) this;
        }

        public Criteria andEqufactoryNotBetween(String value1, String value2) {
            addCriterion("equFactory not between", value1, value2, "equfactory");
            return (Criteria) this;
        }
    }

    public static class Criteria extends GeneratedCriteria {

        protected Criteria() {
            super();
        }
    }

    public static class Criterion {
        private String condition;

        private Object value;

        private Object secondValue;

        private boolean noValue;

        private boolean singleValue;

        private boolean betweenValue;

        private boolean listValue;

        private String typeHandler;

        public String getCondition() {
            return condition;
        }

        public Object getValue() {
            return value;
        }

        public Object getSecondValue() {
            return secondValue;
        }

        public boolean isNoValue() {
            return noValue;
        }

        public boolean isSingleValue() {
            return singleValue;
        }

        public boolean isBetweenValue() {
            return betweenValue;
        }

        public boolean isListValue() {
            return listValue;
        }

        public String getTypeHandler() {
            return typeHandler;
        }

        protected Criterion(String condition) {
            super();
            this.condition = condition;
            this.typeHandler = null;
            this.noValue = true;
        }

        protected Criterion(String condition, Object value, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.typeHandler = typeHandler;
            if (value instanceof List<?>) {
                this.listValue = true;
            } else {
                this.singleValue = true;
            }
        }

        protected Criterion(String condition, Object value) {
            this(condition, value, null);
        }

        protected Criterion(String condition, Object value, Object secondValue, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.secondValue = secondValue;
            this.typeHandler = typeHandler;
            this.betweenValue = true;
        }

        protected Criterion(String condition, Object value, Object secondValue) {
            this(condition, value, secondValue, null);
        }
    }
}